package icons;

import com.intellij.openapi.util.IconLoader;

import javax.swing.*;
import java.awt.*;

/**
 * @author caikang
 * @date 2016/12/28
 */
public final class WxIcons {
    private WxIcons() {
        throw new AssertionError("WxIcons"
            + " instances for you!");
    }

    public static final String PATH_ABOUT="/icon/about.png";
    public static final String PATH_PROJECT="/icon/project.png";
    public static final String PATH_CODE="/icon/code.png";

    public static final String PATH_GIT_COMMIT="/icon/commit.png";
    public static final String PATH_CONFIG="/icon/config.png";
    public static final String PATH_UPDATE="/icon/update.png";
    public static final String PATH_CLEAN="/icon/clean.png";



    public static final Icon LOGO = IconLoader.getIcon("/icon/logo.jpg");

    public static final Icon ABOUT = IconLoader.getIcon(PATH_ABOUT);
    public static final Icon PROJECT = IconLoader.getIcon(PATH_PROJECT);
    public static final Icon CODE = IconLoader.getIcon(PATH_CODE);

    public static final Icon GIT_COMMIT = IconLoader.getIcon(PATH_GIT_COMMIT);

    public static final Icon CONFIG = IconLoader.getIcon(PATH_CONFIG);
    public static final Icon UPDATE = IconLoader.getIcon(PATH_UPDATE);

    public static final Icon CLEAN = IconLoader.getIcon(PATH_CLEAN);

    public static Image loadImage(String path){
        return Toolkit.getDefaultToolkit().getImage(WxIcons.class.getResource(path));
    }
}
